package com.ysx.article.feign;

import com.ysx.article.pojo.ApAuthor;
import com.ysx.core.feign.CoreFeign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value ="toutiao-article",path = "/apAuthor",contextId = "apAuthor")
public interface ApAuthorFeign extends CoreFeign<ApAuthor> {
   /* //新增一个作者账号
    @PostMapping
    Result<ApAuthor> save(@RequestBody ApAuthor apAuthor);*/

    //根据用户id查询作者账号
    @GetMapping("/one/{userId}")
    ApAuthor selectByUserId(@PathVariable(value = "userId")Integer userId);

}
